//引用vue
 import Vue from 'vue'
//import Vue from '../node_modules/vue/dist/vue.js'

//引用vue-router路由
import VueRouter from 'vue-router'
//把路由注册到Vue上
Vue.use(VueRouter)
//引用外部路由
import router from '../src/router.js'

//引用组件
import Apps from '../src/Apps.vue'

//引入mint-ui
import {Header,Swipe, SwipeItem,Button} from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.component(Header.name,Header)
Vue.component(Swipe.name, Swipe)
Vue.component(SwipeItem.name, SwipeItem)
Vue.component(Button.name, Button)

//引入MUI的样式    
import '../src/lib/mui/css/mui.min.css'

//引入MUI扩展图标样式
import '../src/lib/mui/css/icons-extra.css'

//引入vue-resource
import VueResource from 'vue-resource'
//安装到vue上
Vue.use(VueResource)

var vm=new Vue({
    el:"#app",
    data:{
    },
    render:createElement =>createElement(Apps),
    router:router//挂载路由
})
